import { IResponse } from './index.type'

export interface LoginParam {
  account: string
  password: string
}

export interface UserInfo {
  id: string
  account: string
  mobile: string
  token: string
  avatar: string
  nickname: string
  gender: string
  birthday: string
  cityCode: string
  provinceCode: string
  profession: string
}

export type LoginResponse = IResponse<UserInfo>

export interface MobileLoginParam {
  mobile: string
  code: string
}
